//
//  MapViewRoutePlan.h
//  YueYueSpecailCarDriver
//
//  Created by 李亚军 on 17/2/27.
//  Copyright © 2017年 黄旺鑫. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AMapFoundationKit/AMapFoundationKit.h>
#import "HeaderMacro.h"
@class AMapGeoPoint , MAMapView , MAPointAnnotation;

//enum OrderState
//{
//    OrderState_NotStart,     ///< 未开始
//    OrderState_GoToPickUpPassenger = 210,   ///< 行程开始,去接乘客
//    OrderState_ArriveAtThePlaceOfDeparture = 220, ///< 到达出发地
//    OrderState_GoToDestination = 300,    ///< 接到乘客,前往目的地
//    OrderState_ArriveAtThePlaceOfDestination = 400 ///< 乘客送达
//};
//typedef enum OrderState OrderState;


@interface MapViewRoutePlan : UIViewController

/**
 地图路线显示的区域
 */
@property (nonatomic , assign) UIEdgeInsets mapRoutePlanEdgeInsets;

@property(nonatomic , strong) MAMapView *mapView;

@property(nonatomic , strong) MAPointAnnotation *startAnnotation;
@property(nonatomic , strong) MAPointAnnotation *destinationAnnotation;

@property (nonatomic , assign) OrderStatusEnumCode orderStatusEnumCode;

/// 是否显示用户位置
@property (nonatomic , assign) BOOL isShowUser;

/**
 重新绘制路线

 @param startPoint 起始位置
 @param destinationPoint 终点位置
 @param wayPoints 途径点
 */
- (void)reDrawRouteLineWithStartPoint:(AMapGeoPoint *)startPoint destinationPoint:(AMapGeoPoint *)destinationPoint wayPoints:(NSArray <AMapGeoPoint *>*)wayPoints;

/**
 重新绘制路线
 
 @param startPoint 起始位置
 @param destinationPoint 终点位置
 @param wayPoints 途径点
 */
//- (void)reDrawRouteLineWithStartPoint:(AMapGeoPoint *)startPoint destinationPoint:(AMapGeoPoint *)destinationPoint wayPoints:(NSArray <AMapGeoPoint *>*)wayPoints success:(void(^)())success failure:(void(^)())failure;

/* 清空地图上已有的路线. */
- (void)clear;
@end
